home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / manual-p / man_db-2.000 / man_db-2 / man_db-2.3.10 / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-07-13  |  1.2 KB  |  60 lines

  1. # Library Makefile for the man package.
  2. #
  3. # Copyright (C) 1994, 1995, Graeme Wilford.
  4. #
  5. # You may distribute under the terms of the GNU General Public
  6. # License as specified in the COPYING file that comes with this 
  7. # distribution.  
  8. #
  9. # Wed June  6 15:44:47 BST 1994 Wilf. (G.Wilford@ee.surrey.ac.uk):
  10.  
  11. library = libman.a
  12.  
  13. srcdir = @srcdir@
  14. VPATH = @srcdir@
  15. top_srcdir = @top_srcdir@
  16.  
  17. include ../include/Defines
  18.  
  19. .PHONY: $(DEFAULT_TARGETS) test
  20.  
  21. override CPPFLAGS := $(DEFS) -I../include -I$(top_srcdir) -I$(srcdir) -I- \
  22.              $(CPPFLAGS)
  23.  
  24. ALLSRCS = alloca.c basename.c cleanup.c error.c fnmatch.c getopt.c getopt1.c \
  25.       glob.c memcmp.c putenv.c realpath.c rename.c \
  26.       strappend.c strcspn.c strsep.c strspn.c strstr.c xmalloc.c xstrdup.c \
  27.       waitpid.c tempnam.c
  28.  
  29. ALLOBJS = $(ALLSRCS:.c=.o)
  30.  
  31. XOBJS = xstrdup.o xmalloc.o error.o
  32.  
  33. ALL = @LIBOBJS@ @ALLOCA@ $(libobjects) cleanup.o strappend.o $(XOBJS)
  34.  
  35. all: $(library)
  36.  
  37. test: $(library)($(ALLOBJS))
  38.     -$(RANLIB) $(library)
  39.  
  40. $(library): $(library)($(ALL))
  41.     -$(RANLIB) $@
  42.  
  43. # The standard targets
  44. install uninstall:
  45.  
  46. mostlyclean:
  47.     rm -f *~ core $(ALL)
  48.  
  49. clean: mostlyclean
  50.     rm -f $(library)
  51.  
  52. distclean: clean
  53.     rm -f Makefile
  54.  
  55. realclean: distclean
  56.     rm -f tags
  57.  
  58. TAGS:
  59.     $(MKTAGS) $(srcdir)/*.[ch]
  60.